import request from '@/utils/request'

// 查询每日营业进账流水列表
export function listReportInFlow(query) {
  return request({
    url: '/supplier/reportInFlow/list',
    method: 'get',
    params: query
  })
}

// 查询每日营业进账流水详细
export function getReportInFlow(id) {
  return request({
    url: '/supplier/reportInFlow/' + id,
    method: 'get'
  })
}

// 新增每日营业进账流水
export function addReportInFlow(data) {
  return request({
    url: '/supplier/reportInFlow',
    method: 'post',
    data: data
  })
}

// 修改每日营业进账流水
export function updateReportInFlow(data) {
  return request({
    url: '/supplier/reportInFlow',
    method: 'put',
    data: data
  })
}

// 删除每日营业进账流水
export function delReportInFlow(id) {
  return request({
    url: '/supplier/reportInFlow/' + id,
    method: 'delete'
  })
}

// 导出每日营业进账流水
export function exportReportInFlow(query) {
  return request({
    url: '/supplier/reportInFlow/export',
    method: 'get',
    params: query
  })
}